/* App.css */
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap'); /* 英文字体引入 */

body {
  font-family: 'Patrick Hand', 'Comic Sans MS', 'YouYuan', Arial, sans-serif; /* 英文和中文字体 */
  background-color: #fff9e6; /* 淡黄色背景 */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.App {
  background-color: #fff; /* 白色背景 */
  padding: 30px 40px; /* 调整内边距 */
  border-radius: 16px; /* 圆角边框 */
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
  max-width: 600px; /* 设置宽度 */
  width: 100%;
  max-height: 90%; /* 限制高度 */
  overflow-y: auto; /* 如果内容超出，允许滚动 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 居中对齐 */
}

h1 {
  text-align: center;
  color: #f8b400; /* 黄色字体 */
  margin-bottom: 20px;
  font-family: 'Patrick Hand', 'Comic Sans MS', 'YouYuan', Arial, sans-serif; /* 使用可爱字体 */
}

form {
  display: flex;
  flex-direction: column;
  align-items: center; /* 表单居中对齐 */
  gap: 15px;
}

label {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  display: block;
  font-family: 'YouYuan', 'Patrick Hand', Arial, sans-serif; /* 使用可爱字体 */
}

input, select {
  width: 80%; /* 缩短输入框长度 */
  max-width: 300px; /* 限制最大宽度 */
  padding: 10px;
  font-size: 16px;
  border: 2px solid #f8b400;
  border-radius: 8px; /* 圆角边框 */
  font-family: 'YouYuan', 'Patrick Hand', Arial, sans-serif; /* 设置字体 */
  text-align: center; /* 输入框文本居中 */
}

input:focus, select:focus {
  outline: none;
  border-color: #ff9800;
}

button {
  width: 80%;
  max-width: 300px;
  background-color: #f8b400;
  color: white;
  cursor: pointer;
  font-weight: bold;
  font-family: 'YouYuan', 'Patrick Hand', Arial, sans-serif; /* 可爱字体 */
  padding: 10px;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #ff9800;
}

h2 {
  text-align: center;
  color: #f8b400;
  margin-top: 20px;
}

.recipe {
  background-color: #fff4d6;
  padding: 15px;
  margin: 10px 0;
  border-radius: 12px; /* 圆角更大 */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.recipe h3 {
  color: #f8b400;
  font-size: 18px;
}

.recipe p {
  color: #555;
}